<template>
  <div class="wrap flex">
    <div class="data-item flex js" v-for="(item, index) in data" :key="index">
      <img :src="item.icon" alt="icon" />
      <div class="inner-wrap flex fw js">
        <i>{{ item.number }}<i>个</i></i>
        <span>{{ item.label }}</span>
      </div>
    </div>
  </div>
</template>

<script>
import img13 from "../../assets/img/img13.png";
import img24 from "../../assets/img/img24.png";
import img23 from "../../assets/img/img23.png";

export default {
  components: {},
  data() {
    return {
      data: [
        {
          icon: img13,
          number: "1,324",
          label: "装机总数"
        },
        {
          icon: img24,
          number: "3⁺",
          label: "覆盖国家"
        },
        {
          icon: img23,
          number: 188,
          label: "覆盖城市"
        }
      ]
    };
  },
  mounted() {}
};
</script>

<style scoped>
.wrap {
  width: 100%;
  height: 100%;
}

.data-item {
  position: relative;
  flex: 1;
  height: 100%;
}

.data-item::after {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 1px;
  height: 18%;
  background: #9ef8fb;
  transform: translate3d(0, -50%, 0);
  opacity: 0.8;
  content: "";
}

.data-item:last-child::after {
  display: none;
}

.data-item img {
  width: 1.7vw;
  height: auto;
}

.inner-wrap {
  flex: 1;
  padding-left: 5%;
}

.inner-wrap i {
  display: inline-block;
  width: 100%;
  font-weight: 600;
  font-size: 3.25vh;
  line-height: 1.3vw;
}

.inner-wrap i i {
  display: inline;
  font-size: 1.56vh;
}

.inner-wrap span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.56vh;
}
</style>
